(function() {
    App.set("$Event.login.submit", function() {
        var data = App.get("$Cache.login.data");
        console.log(data);
        coAjax.post(public_api.admin.login, data, function(result) {
            // console.log(result);
            App.set("loginer", result.info);
            Path.jump("/main/main.html");
        });
        // location.href = "main/main.html";
    });
}());
